using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Marlimer.Common; 

namespace Marlimer.Data.Universal
{
    public class uni_TipoPago
    {
        public DataTable getDTTipoPago(int flg_masivo)
        {
            SqlCommand sqlcmd = new SqlCommand();
            SqlDataAdapter da = new SqlDataAdapter();
            DataSet ds = new DataSet();

            sqlcmd.CommandText = "spsdtTipoPago";
            sqlcmd.CommandType = CommandType.StoredProcedure;
            sqlcmd.Connection = Session.getConexion();

            sqlcmd.Parameters.Add("@flg_masivo", SqlDbType.Int);

            sqlcmd.Parameters["@flg_masivo"].Value = flg_masivo; 

            da.SelectCommand = sqlcmd;
            da.Fill(ds);

            return ds.Tables[0]; 
        }
    }
}
